package com.example.mybatisplus.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.scheduling.support.SimpleTriggerContext;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-12-07
 * Time: 17:00
 */

//@Mapper//数据库中的Component
@TableName("userinfo")//意思：这个类对应数据库中的表名
@Data
public class UserInfo {
//    告诉列名的映射关系
    @TableField("id")
    @TableId
    @Setter
    @Getter
    private Integer id;

    private String username;

    private String password;

    private Integer age;

    private Integer gender;

    private String phone;

    @TableField("delete_flag")
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
}
